drm/vc4: Fix ->clock_select setting for the VEC encoder
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 2 Dec 2016 13:48:07 +0000 (14:48 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 20 Feb 2017 20:31:44 +0000 (20:31 +0000)
commit0ac6bf0cdb076baca8b458affdfc25721dff2e86
tree32e0eefc9362e1b55c5a9119fa4a3b8b4d79ea8e
parent69a3bcb14950561392b0bb3b0b398ddada3400b7
drm/vc4: Fix ->clock_select setting for the VEC encoder

PV_CONTROL_CLK_SELECT_VEC is actually 2 and not 0. Fix the definition and
rework the vc4_set_crtc_possible_masks() to cover the full range of the
PV_CONTROL_CLK_SELECT field.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit ab8df60e3a3b68420d0d4477c5f07c00fbfb078b)
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_regs.h